package com.kashi.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface SearchMapper {

    @Update("UPDATE history SET historyList = #{historyList} WHERE id = #{id}")
    void save(Integer id, List<String> historyList);

    @Select("SELECT historyList FROM history WHERE id = #{id}")
    List<String> read(Integer id);
}
